package com.xydtech.ecard.config.service.impl;

import com.xydtech.common.core.text.Convert;
import com.xydtech.ecard.config.domain.EcardBusiConfigList;
import com.xydtech.ecard.config.mapper.EcardBusiConfigListMapper;
import com.xydtech.ecard.config.service.IEcardBusiConfigListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 电子名片业务填报类型配置积分明细Service业务层处理
 *
 * @author yuzhiguo
 * @date 2024-09-27 下午1:31
 */
@Service
public class EcardBusiConfigListServiceImpl implements IEcardBusiConfigListService
{
    @Autowired
    private EcardBusiConfigListMapper ecardBusiConfigListMapper;

    /**
     * 查询电子名片业务填报类型配置积分明细
     *
     * @param id 电子名片业务填报类型配置积分明细主键
     * @return 电子名片业务填报类型配置积分明细
     */
    @Override
    public EcardBusiConfigList selectEcardBusiConfigListById(Long id)
    {
        return ecardBusiConfigListMapper.selectEcardBusiConfigListById(id);
    }

    /**
     * 查询电子名片业务填报类型配置积分明细列表
     *
     * @param ecardBusiConfigList 电子名片业务填报类型配置积分明细
     * @return 电子名片业务填报类型配置积分明细
     */
    @Override
    public List<EcardBusiConfigList> selectEcardBusiConfigListList(EcardBusiConfigList ecardBusiConfigList)
    {
        return ecardBusiConfigListMapper.selectEcardBusiConfigListList(ecardBusiConfigList);
    }

    /**
     * 新增电子名片业务填报类型配置积分明细
     *
     * @param ecardBusiConfigList 电子名片业务填报类型配置积分明细
     * @return 结果
     */
    @Override
    public int insertEcardBusiConfigList(EcardBusiConfigList ecardBusiConfigList)
    {
        return ecardBusiConfigListMapper.insertEcardBusiConfigList(ecardBusiConfigList);
    }

    /**
     * 修改电子名片业务填报类型配置积分明细
     *
     * @param ecardBusiConfigList 电子名片业务填报类型配置积分明细
     * @return 结果
     */
    @Override
    public int updateEcardBusiConfigList(EcardBusiConfigList ecardBusiConfigList)
    {
        return ecardBusiConfigListMapper.updateEcardBusiConfigList(ecardBusiConfigList);
    }

    /**
     * 批量删除电子名片业务填报类型配置积分明细
     *
     * @param ids 需要删除的电子名片业务填报类型配置积分明细主键
     * @return 结果
     */
    @Override
    public int deleteEcardBusiConfigListByIds(String ids)
    {
        return ecardBusiConfigListMapper.deleteEcardBusiConfigListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除电子名片业务填报类型配置积分明细信息
     *
     * @param id 电子名片业务填报类型配置积分明细主键
     * @return 结果
     */
    @Override
    public int deleteEcardBusiConfigListById(Long id)
    {
        return ecardBusiConfigListMapper.deleteEcardBusiConfigListById(id);
    }
}
